package com.baizhi.innerclassx;

public class Mouse implements USB {

    private String brand;

    public Mouse() {
    }

    public Mouse(String brand) {
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Override
    public void service() {
        //鼠标有一个指示灯
        class Bulb{
            private String color;

            public String getColor() {
                return color;
            }

            public void setColor(String color) {
                this.color = color;
            }

            public void light(){
                System.out.println("鼠标的指示灯亮了");
            }
        }
        //创建指示灯对象
        Bulb bulb = new Bulb();
        bulb.light();

        System.out.println(brand + "牌子的鼠标在拖动指针~~~");
    }
}
